//
// Created by 12992 on 24-10-13.
//

#ifndef UPLOADBAR_H
#define UPLOADBAR_H

#include <QWidget>

namespace gui::widgets
{
    QT_BEGIN_NAMESPACE

    namespace Ui
    {
        class UploadBar;
    }

    QT_END_NAMESPACE

    class UploadBar : public QWidget
    {
    Q_OBJECT

    public:
        explicit UploadBar(QWidget* parent = nullptr);

        ~UploadBar() override;

    signals:
        void canceled();

        void fileUploaded(const QString& path);

    private slots:

        void selectMediaFile();

    private:
        void init_openfile_button_layout();

        void init_signal();

    private:
        Ui::UploadBar* ui;
    };
} // gui::widgets

#endif //UPLOADBAR_H
